#include <iostream>
#include <unistd.h>
#include <sys/types.h>
using namespace std;

int main()
{
    int pid=fork();
    if(pid>0)
    {
        while(true)
        {
            sleep(1);
            cout<<"我是father\n";
        }
    }
    else
    {
        while(true)
        {
            sleep(1);
            cout<<"我是child\n";
        }
    }
    return 0;
}